package com.touchstone.synchdata.common.util.vo;


import lombok.Data;

/**
 * @Description 获取房间信息返回
 * @Author July
 * @CreateTime on 2019-09-09 9:11
 */
@Data
public class RoomVO {
    /**
     * 成功状态码
     */
    public static final int SUCCESS_CODE = 0;
    /**
     * 失败错误码
     */
    public static final int FAIL_CODE = 1;
    /**
     * 信息提示
     */
    public static final String SUCCESS_MSG = "成功";
    public static final String FAIL_MSG = "原因失败";

    /**
     * 返回码
     */
    private Integer recode;
    /**
     * 说明
     */
    private String remsg;

    /**
     * 会议id
     */
    private String roomid;

    /**
     * 生成的token
     */
    private String accesstoken;

    /**
     * 会议名称
     */
    private String roomname;

    /**
     * 会议描述
     */
    private String roomdesc;

    /**
     * 检查部位
     */
    private String examitem;

    /**
     * 检查部位
     */
    private String exampart;

    /**
     * 服务地址
     */
    private String avserverurl;


    public RoomVO() {

    }
    public RoomVO(String roomid) {
        this.roomid = roomid;
    }

    public RoomVO(String roomid, String accesstoken) {
        this.roomid = roomid;
        this.accesstoken = accesstoken;
    }

    public RoomVO(Integer recode, String remsg) {
        this.recode = recode;
        this.remsg = remsg;
    }

    public RoomVO(Integer recode, String remsg, String roomid, String accesstoken, String roomname, String roomdesc, String examitem, String exampart, String avserverurl) {
        this.recode = recode;
        this.remsg = remsg;
        this.roomid = roomid;
        this.accesstoken = accesstoken;
        this.roomname = roomname;
        this.roomdesc = roomdesc;
        this.examitem = examitem;
        this.exampart = exampart;
        this.avserverurl = avserverurl;
    }
    public static RoomVO success(String roomid, String accesstoken){
        return new RoomVO(roomid, accesstoken);
    }

    public static RoomVO fail(){
        return new RoomVO(FAIL_CODE, FAIL_MSG);
    }

    public static RoomVO fail(String msg){
        return new RoomVO(FAIL_CODE, msg);
    }
}
